imx: mx7ulp: Add soc level initialization codes and functions
authorPeng Fan <[email protected]>
Wed, 22 Feb 2017 08:21:43 +0000 (16:21 +0800)
committerStefano Babic <[email protected]>
Fri, 17 Mar 2017 08:27:08 +0000 (09:27 +0100)
commit1b409828b17605b2fdbe47b11d4ea1189f32f1e8
tree370cab8534b34b07019f5f30ebe6a3cc39bece71
parentd0f8516d9e6a327b39cacdeb9a4e930c1348d907
imx: mx7ulp: Add soc level initialization codes and functions

Implement soc level functions to get cpu rev, reset cause, enable cache,
etc. We will disable the wdog and init clocks in s_init at very early u-boot
phase.

Since the we are seeking the way to get chip id for mx7ulp, the get_cpu_rev
is hard coded to a fixed value. This may change in future.

Reuse some code in imx-common.

Signed-off-by: Peng Fan <[email protected]>
Signed-off-by: Ye Li <[email protected]>
Cc: Stefano Babic <[email protected]>
arch/arm/Makefile
arch/arm/cpu/armv7/mx7ulp/Makefile
arch/arm/cpu/armv7/mx7ulp/soc.c [new file with mode: 0644]
arch/arm/imx-common/Makefile
arch/arm/include/asm/arch-imx/cpu.h
arch/arm/include/asm/arch-mx7ulp/sys_proto.h [new file with mode: 0644]